#pragma once

#include<iostream>
#include<string>

#define DEBUG   0
#define NORMAL  1
#define WARNING 2
#define ERROR   3
#define FATAL   4



//日志是有日志等级的
void logMessage(int level, const std::string message)
{
    //日志格式
    //[日志等级] [时间戳/时间] [pid] [message]
    //[WARNING] [2023-5-10 6:00:00] [1312] [创建sock失败]
    std::cout << message << std::endl;
}